//
//  PLPhotoBrowser.h
//  PlatformCommon
//
//  Created by 九叶子 on 2018/7/17.
//

/*
 * 图片浏览器
 */

#import <UIKit/UIKit.h>

@class PLPhotoBrowser;
@protocol PLPhotoBrowserDelegate <NSObject>

@required

- (UIImage *)photoBrowser:(PLPhotoBrowser *)browser placeholderImageForIndex:(NSInteger)index;

@optional

- (NSURL *)photoBrowser:(PLPhotoBrowser *)browser highQualityImageURLForIndex:(NSInteger)index;

- (void)photoBrowserDiddisappear:(PLPhotoBrowser *)browser;

@end
@interface PLPhotoBrowser : UIView <UIScrollViewDelegate>

@property (nonatomic, weak) UIView *sourceImagesContainerView;
@property (nonatomic, assign) NSInteger currentImageIndex;
@property (nonatomic, assign) NSInteger imageCount;

@property (nonatomic, weak) id<PLPhotoBrowserDelegate> delegate;

- (void)show;

@end
